var t = getApp();

Page({
    data: {
        fridayHidden: !1,
        plusHidden: !0,
        fridayPage:1,
        plusPage:1,
        notPlusHidden:!1
    },
    onLoad: function() {
        wx.setNavigationBarColor({
            frontColor: '#ffffff',
            backgroundColor: '#F86B23',
            animation: {
                duration: 400,
                timingFunc: 'easeIn'
            }
        })
        wx.setNavigationBarTitle({
            title: '周五会员日'
        });
        this.isPlus();
    },
    getMore:function () {
        var that = this;
        var page = that.data.fridayPage;
        that.setData({
            fridayPage:++page
        });
        console.log(that.data.fridayPage);
    },
    isPlus:function(){
        var o = this, token = wx.getStorageSync("token");
        wx.request({
            url: a.apiUrl("user/isPlus"),
            data: {
            },
            method: "post",
            header: {
                "Content-Type": "application/json",
                "X-ECTouch-Authorization": token
            },
            success: function (t) {
                if(t.data.data == 1){
                    that.setData({
                        notPlusHidden:true
                    });
                }else{
                    that.setData({
                        notPlusHidden:false
                    });
                }
            }
        });
    },
    buyPlus:function () {
        var that = this;
        that.setData({
            notPlusHidden:true
        });
    }
});